module MiscFunc
    
    def info(str)
        puts Time.now.strftime("%Y/%m/%d %H:%M:%S I #{str}")
    end

    def error(str)
        puts Time.now.strftime("%Y/%m/%d %H:%M:%S E #{str}")
    end

    def debug(str)
        puts Time.now.strftime("%Y/%m/%d %H:%M:%S D #{str}")
    end

    def message(str)
        print str.gsub(/^/, ">" * 19 + " M ")
    end
    
def r
  r = "0%2E"
  1.upto(5) do |i|
    r = r + ("%03d" % rand(999))
  end
  r = r + ("%02d" % rand(99))
  return r
end

end